/// areaLsgx : "010401001"
/// unitName : "1"
/// position : "1"
/// lat : "113"
/// lon : "37"
/// areaXzqh : "110101001"
/// qingbaoTypeCode : "4"
/// qingbaoBusinessType : "MB"
/// img : [{"path":"business/d8067699-a7f8-43ad-8f70-e0ef382deb1b.png","size":29444}]
/// video : {}
/// userPhone : "18734797139"
/// detail : "22"
/// qingbaoSourceCode : 1
/// userId : "1"
/// createTime : 1724825957

class IntellPublishDto {
  IntellPublishDto({
      String? areaLsgx, 
      String? unitName, 
      String? position, 
      String? lat, 
      String? lon, 
      String? areaXzqh, 
      String? qingbaoTypeCode, 
      String? qingbaoBusinessType, 
      List<Img>? img, 
      dynamic video, 
      String? userPhone, 
      String? detail, 
      num? qingbaoSourceCode, 
      String? userId, 
      num? createTime,}){
    _areaLsgx = areaLsgx;
    _unitName = unitName;
    _position = position;
    _lat = lat;
    _lon = lon;
    _areaXzqh = areaXzqh;
    _qingbaoTypeCode = qingbaoTypeCode;
    _qingbaoBusinessType = qingbaoBusinessType;
    _img = img;
    _video = video;
    _userPhone = userPhone;
    _detail = detail;
    _qingbaoSourceCode = qingbaoSourceCode;
    _userId = userId;
    _createTime = createTime;
}

  IntellPublishDto.fromJson(dynamic json) {
    _areaLsgx = json['areaLsgx'];
    _unitName = json['unitName'];
    _position = json['position'];
    _lat = json['lat'];
    _lon = json['lon'];
    _areaXzqh = json['areaXzqh'];
    _qingbaoTypeCode = json['qingbaoTypeCode'];
    _qingbaoBusinessType = json['qingbaoBusinessType'];
    if (json['img'] != null) {
      _img = [];
      json['img'].forEach((v) {
        _img?.add(Img.fromJson(v));
      });
    }
    _video = json['video'];
    _userPhone = json['userPhone'];
    _detail = json['detail'];
    _qingbaoSourceCode = json['qingbaoSourceCode'];
    _userId = json['userId'];
    _createTime = json['createTime'];
  }
  String? _areaLsgx;
  String? _unitName;
  String? _position;
  String? _lat;
  String? _lon;
  String? _areaXzqh;
  String? _qingbaoTypeCode;
  String? _qingbaoBusinessType;
  List<Img>? _img;
  dynamic _video;
  String? _userPhone;
  String? _detail;
  num? _qingbaoSourceCode;
  String? _userId;
  num? _createTime;
IntellPublishDto copyWith({  String? areaLsgx,
  String? unitName,
  String? position,
  String? lat,
  String? lon,
  String? areaXzqh,
  String? qingbaoTypeCode,
  String? qingbaoBusinessType,
  List<Img>? img,
  dynamic video,
  String? userPhone,
  String? detail,
  num? qingbaoSourceCode,
  String? userId,
  num? createTime,
}) => IntellPublishDto(  areaLsgx: areaLsgx ?? _areaLsgx,
  unitName: unitName ?? _unitName,
  position: position ?? _position,
  lat: lat ?? _lat,
  lon: lon ?? _lon,
  areaXzqh: areaXzqh ?? _areaXzqh,
  qingbaoTypeCode: qingbaoTypeCode ?? _qingbaoTypeCode,
  qingbaoBusinessType: qingbaoBusinessType ?? _qingbaoBusinessType,
  img: img ?? _img,
  video: video ?? _video,
  userPhone: userPhone ?? _userPhone,
  detail: detail ?? _detail,
  qingbaoSourceCode: qingbaoSourceCode ?? _qingbaoSourceCode,
  userId: userId ?? _userId,
  createTime: createTime ?? _createTime,
);
  String? get areaLsgx => _areaLsgx;
  String? get unitName => _unitName;
  String? get position => _position;
  String? get lat => _lat;
  String? get lon => _lon;
  String? get areaXzqh => _areaXzqh;
  String? get qingbaoTypeCode => _qingbaoTypeCode;
  String? get qingbaoBusinessType => _qingbaoBusinessType;
  List<Img>? get img => _img;
  dynamic get video => _video;
  String? get userPhone => _userPhone;
  String? get detail => _detail;
  num? get qingbaoSourceCode => _qingbaoSourceCode;
  String? get userId => _userId;
  num? get createTime => _createTime;

  set areaLsgx(String? areaLsgx) => _areaLsgx = areaLsgx;
  set unitName(String? unitName) => _unitName = unitName;
  set position(String? position) => _position = position;
  set lat(String? lat) => _lat = lat;
  set lon(String? lon) => _lon = lon;
  set areaXzqh(String? areaXzqh) => _areaXzqh = areaLsgx;
  set qingbaoTypeCode(String? qingbaoTypeCode) => _qingbaoTypeCode = qingbaoTypeCode;
  set qingbaoBusinessType(String? qingbaoBusinessType) => _qingbaoBusinessType = qingbaoBusinessType;
  set img(List<Img>? img) => _img = img;
  set video(dynamic video) => _video = video;
  set userPhone(String? userPhone) => _userPhone = userPhone;
  set detail(String? detail) => _detail = detail;
  set qingbaoSourceCode(num? qingbaoSourceCode) => _qingbaoSourceCode = qingbaoSourceCode;
  set userId(String? userId) => _userId = userId;
  set createTime(num? createTime) => _createTime = createTime;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['areaLsgx'] = _areaLsgx;
    map['unitName'] = _unitName;
    map['position'] = _position;
    map['lat'] = _lat;
    map['lon'] = _lon;
    map['areaXzqh'] = _areaXzqh;
    map['qingbaoTypeCode'] = _qingbaoTypeCode;
    map['qingbaoBusinessType'] = _qingbaoBusinessType;
    if (_img != null) {
      map['img'] = _img?.map((v) => v.toJson()).toList();
    }
    map['video'] = _video;
    map['userPhone'] = _userPhone;
    map['detail'] = _detail;
    map['qingbaoSourceCode'] = _qingbaoSourceCode;
    map['userId'] = _userId;
    map['createTime'] = _createTime;
    return map;
  }

}

/// path : "business/d8067699-a7f8-43ad-8f70-e0ef382deb1b.png"
/// size : 29444

class Img {
  Img({
      String? path, 
      num? size,}){
    _path = path;
    _size = size;
}

  Img.fromJson(dynamic json) {
    _path = json['path'];
    _size = json['size'];
  }
  String? _path;
  num? _size;
Img copyWith({  String? path,
  num? size,
}) => Img(  path: path ?? _path,
  size: size ?? _size,
);
  String? get path => _path;
  num? get size => _size;
  set path(String? path) => _path = path;
  set size(num? size) => _size = size;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['path'] = _path;
    map['size'] = _size;
    return map;
  }

}